﻿using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Transactions;

namespace BLL
{
    public class B_Manul_adjust
    {
        public bool adjust(List<t_data> all_tdata, List<g_data> all_gdata, List<Stu_group> all_group) 
        {
            using (TransactionScope tx = new TransactionScope())//事务处理
            {
                BLL.B_T b_T = new BLL.B_T();
                b_T.save_result(all_tdata);

                BLL.B_G b_G = new BLL.B_G();
                b_G.save_result(all_gdata);

                BLL.B_Group b_stuGroup = new BLL.B_Group();
                b_stuGroup.save_List(all_group);

                tx.Complete();
                return true;
            }
        }
    }
}
